﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.Model;

namespace Wq.ManagerService.Entities
{
    /// <summary>
	/// 文件
	/// </summary>
	[TenantAttribute("manager")]
    [SugarTable("Wq_File")]
    public class FileInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
        /// <summary>
        /// 文件分类
        /// </summary>
        [SugarColumn(ColumnDescription = "文件分类")]
        public int CategoryId { get; set; }
        /// <summary>
        /// 封面
        /// </summary>
        [SugarColumn(ColumnDescription = "封面")]
        public string Cover { get; set; }
        /// <summary>
        /// 文件名
        /// </summary>
        [SugarColumn(ColumnDescription = "文件名")]
        public string Name { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        [SugarColumn(ColumnDescription = "文件类型")]
        public int Type { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        [SugarColumn(ColumnDescription = "文件大小")]
        public long Size { get; set; }
        /// <summary>
        /// Tag
        /// </summary>
        [SugarColumn(ColumnDescription = "Tag")]
        public string Tag { get; set; }
        /// <summary>
        /// OSS服务唯一ID
        /// </summary>
        [SugarColumn(ColumnDescription = "OSS服务唯一ID")]
        public string ETag { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        [SugarColumn(ColumnDescription = "文件路径")]
        public string Path { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        [SugarColumn(ColumnDescription = "上传时间")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 供应商Id  0 表示主站
        /// </summary>
        [SugarColumn(ColumnDescription = "供应商Id")]
        public long SupplierId { get; set; }
    }
}
